target          :=              main
cc              :=              gcc
c_files         :=              $(wildcard ./*.c)
c_flags         :=               -std=c99

.IPONY  : all clean run

$(target) : $(c_files)
	$(cc) $(c_files) -o $(target) $(c_flags)

clean :
	rm *.o $(target)

run :
	./$(target)
